a11y: Hide children of GtkFishBowl
authorEmmanuele Bassi <ebassi@gnome.org>
Thu, 19 Nov 2020 14:47:16 +0000 (14:47 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Thu, 19 Nov 2020 15:20:56 +0000 (15:20 +0000)
The fishbowl widget is purely presentational, and its children should
not be visible in the accessibility tree.

demos/gtk-demo/gtkfishbowl.c

index 135f909bf0c38074b0a0a525248aae2a964fc692..e0ee9037e6ead2634a111035614a7208446e8a78 100644 (file)
@@ -179,6 +179,9 @@ gtk_fishbowl_add (GtkFishbowl *fishbowl,
   child_info->dy = new_speed ();
 
   gtk_widget_set_parent (widget, GTK_WIDGET (fishbowl));
+  gtk_accessible_update_state (GTK_ACCESSIBLE (widget),
+                               GTK_ACCESSIBLE_STATE_HIDDEN, TRUE,
+                               -1);
 
   g_hash_table_insert (priv->children, widget, child_info);
   priv->count++;